package com.server.store.rule;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Entity;
import com.shared.data.IData;
/**
 * Classe encapsulant les informations relatives à l'enregistrement des  {@link DecisionMaker} dans le DataStore
 * @author queyroi
 *
 */
@Entity
public class DmAsXml implements IData{
	@Id private Long key;
	/**
	 * nom du {@link DecisionMaker}
	 */
	private String name;
	/**
	 * description du {@link DecisionMaker} au format xml
	 */
	private String contents;
	
	
	public DmAsXml() {
		name="";
		contents="";
	}
	
	public DmAsXml(String name,String contents){
		this.name = name;
		this.contents = contents;
	}
	
	public DmAsXml(DmAsXml dmAsXml){
		name = dmAsXml.name;
		contents = dmAsXml.contents;
	}
	/**
	 * @param key the key to set
	 */
	public void setKey(Long key) {
		this.key = key;
	}
	/**
	 * @return the key
	 */
	public Long getKey() {
		return key;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param contents the contents to set
	 */
	public void setContents(String contents) {
		this.contents = contents;
	}
	/**
	 * @return the contents
	 */
	public String getContents() {
		return contents;
	}
}
